﻿using OrderManage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace OrderManageForm
{
    static class Program
    {
        public static OrderService service = new OrderService();
        static Order o1 = new Order("1", "miao1","2023-4-1");
        static Order o2 = new Order("2", "miao2","2023-4-3");
        static Order o3 = new Order("3", "miao3","2023-4-4");

        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            o1.orderDetails.AddGoods(new Goods("g3", 1), 1);
            o2.orderDetails.AddGoods(new Goods("g2", 2), 2);
            o3.orderDetails.AddGoods(new Goods("g3", 1), 2);
            service.addOrder(o1);
            service.addOrder(o2);
            service.addOrder(o3);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}
